import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import '../src/assets/public.css'
import '../src/assets/iconfont.css'

import Vuetify from 'vuetify'
import vuetify from '@/plugins/vuetify'
Vue.use(Vuetify)

import axios from 'axios'
Vue.prototype.$axios = axios;


import hljs from 'highlight.js' // 引入JS
Vue.directive('highlight', function (el) {
  let blocks = el.querySelectorAll('pre code');
  blocks.forEach((block) => {
    hljs.highlightBlock(block)
  })
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  vuetify,
  render: h => h(App)
}).$mount('#app')
